<template>
  <a-modal
    :visible="visible"
    :afterClose="hanldeAfterClose"
    @cancel="close"
    @ok="close"
    :width="1200"
    title="查看合同">
    <contract-info v-if="visible" :contractID="data.ID" :showCancel="false"></contract-info>
  </a-modal>
</template>

<script>
// 此组件提供一个modal层的合同信息
import contractInfo from './contract.vue'
export default {
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    data: {
      type: Object,
      default: () => {}
    }
  },
  components: {
    contractInfo
  },
  data () {
    return {
    }
  },
  methods: {
    close () {
      this.$emit('update:visible', false)
      this.$emit('update:data', {})
    },
    hanldeAfterClose () {}
  }
}
</script>
<style lang="less" scoped>
</style>
